<?php

/**
* Infotex UK Shopping Cart Functions
*
* Functions to provide the facilities used by the shopping cart
*
* @package    cart
* @author     John Harman Infotex UK Ltd
* @license    Commercial
* @copyright  2005-2008 Infotex UK Ltd www.infotex.co.uk
* @version    $Id:$
*/

/**
 #########################
 * require stdfuncs
 * this provides dbdetails etc which are required by most other functions
 #########################
*/

$stdfuncsok=@include_once("inc_stdfuncs.php");
if($stdfuncsok==FALSE) {die("Fatal Error: Unable to open stdfuncs file");};

/**
 #########################
* abc
 #########################
*/
function getFactors($number) {
	$returnval=array();
	$c=0;

	for($y = 1; $y <= $number; $y++) {
    $z = $number % $y;
    if($z == 0) {
      $returnval[$c]=$y;
      $c++;
    }
  }
  return $returnval;
}
?>